package com.lt.test.consumer.web.util;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @author ：Dragon.LT
 * @date ：Created in 2019/12/25 10:11
 * @description：
 * @modified By：Dragon.LT
 * @version: $
 */
@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {

    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        //配置静态文件映射访问路径
        registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
    }
}
